#include "goLang.h"
#include "baseLang.h"

GoLanguage::GoLanguage(const string& name) : CompileLanguage(name) {
    suffix = "go";
    suffixMap.emplace("go", name);
}
std::string GoLanguage::compileFileStr(std::string filename, std::string target) const {
    if (target == "") {
        target = getBinaryFilename(filename);
    }
    return "go build -o " + target + " " + filename;
}


const Language* GO_LANG = new GoLanguage{ "go" };
